package br.com.linkcom.sined.geral.service;

import java.util.HashMap;

import br.com.linkcom.neo.core.standard.Neo;
import br.com.linkcom.sined.geral.bean.Modulo;
import br.com.linkcom.sined.util.SinedUtil;
import br.com.linkcom.sined.util.neo.persistence.GenericService;

public class ModuloService extends GenericService<Modulo>{
	
	private HashMap<String, HashMap<String, Boolean>> hashModules = new HashMap<String, HashMap<String,Boolean>>();
	
	public void clearCache(){
		String clientName = SinedUtil.getClientName();
		hashModules.remove(clientName);
	}
	
	/* singleton */
	private static ModuloService instance;
	public static ModuloService getInstance() {
		if(instance == null){
			instance = Neo.getObject(ModuloService.class);
		}
		return instance;
	}
}